package com.xx.service;

import com.xx.dao.CustomerDao;
import com.xx.pojo.Customer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
public class CustomerServiceImpl implements CustomerService {

    @Resource
    private CustomerDao customerDao;


    public Customer findCustomerById(int id) {
        return this.customerDao.findCustomerById(id);
    }
}
